let arr = [
    { id: 1, name: '买笔', done: true },
    { id: 2, name: '买笔记本', done: true },
    { id: 3, name: '练字', done: false }
]

let newArr = arr.filter(function(item, index) {
    return item.done;
})

console.log(newArr);